﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using WCFMsmqTest;

namespace WCFMsmqClient
{
    class Program
    {
        static void Main(string[] args)
        {
            ChannelFactory<IUser> channelFactory = new ChannelFactory<IUser>("defaultEndpoint");
            IUser channel = channelFactory.CreateChannel();
            channel.Add(new User() { Name="rodzwzh",Age=24,Pwd="***"});
            Console.WriteLine("message has been send asynchronized");
            Console.ReadKey();
        }
    }
}
